<style>
#image-upload-multiple fieldset {
    width: 96%;
}
#image-upload-multiple .multiple-button {
    margin-bottom: 0;
}
.hint-block {
    margin-left: 0;
}
</style>
<?php $form = \yii\widgets\ActiveForm::begin(['enableAjaxValidation' => true,'enableClientValidation' => true,'options'=>['class'=>'form-validate']]); ?>
<table width="100%" class="table-form" data-parent="<?=empty($model->parent_id)?'':$model->parent_id;?>">
    <tr>
        <th class="zx-goods-table" style="padding-bottom:6px;"><?= $model->attributeLabels()['name']; ?></th>
        <td><?=$model->name?></td>
    </tr>
    <tr>
        <th class="zx-goods-table" style="padding-bottom:10px;"><?= $model->attributeLabels()['regist_name']; ?></th>
        <td style="padding-bottom:4px;"><?=!empty($model->regist_name)?$model->regist_name:'缺失'?></td>
    </tr>
    <tr>
        <th class="zx-goods-table"><?= $model->attributeLabels()['imageList']; ?></th>
        <td><?= $form->field($model, 'imageList', ['template' => '{input}{error}{hint}'])->widget(\doumiaoduo\ueditor\ImageUploadMultiple::className(),['options'=>[
                'class'=>'input-text',
            ],
                'clientOptions'=>[
                    'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action'])
                ],
            'num'=>6])->hint('请将机构LOGO图片设置为默认图，以便微信端课程页面展示'); ?>
        </td>
    </tr>
    <tr>
        <th class="zx-goods-table"><?= $model->attributeLabels()['description']; ?></th>
        <td style="padding-right: 20px;"><?= $form->field($model, 'description', ['template' => '{input}{error}{hint}'])->widget(\doumiaoduo\ueditor\Ueditor::className(),['clientOptions'=>[
                'serverUrl'=>\common\components\helpers\Fun::url(['/uploader/action']),
                'toolbars'=>[['fullscreen', 'source', '|', 'undo', 'redo', '|','bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript','rowspacingtop', 'rowspacingbottom', 'lineheight', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify','simpleupload']],
                'initialFrameWidth'=>'100%'
            ],]); ?></td>
    </tr>
</table>
<div class="m_top_10 btn" style="display: none">
    <?= \yii\helpers\Html::submitButton('提交', ['class' => "button", 'id' => 'dosubmit']) ?>
</div>
<?php \yii\widgets\ActiveForm::end(); ?>

